package com.guigu.service.impl;

import com.guigu.dao.DepartmentMapper;
import com.guigu.domain.Department;
import com.guigu.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("departmentService")
public class DepartmentServiceImpl implements DepartmentService {
    @Qualifier("departmentMapper")
    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> getAllDept() {
        return departmentMapper.selectByExample (null);
    }
}
